package com.example.pwj.ffstudy.comm.anim;

import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.view.View;

/**
 * Created by pwj on 2017/8/16.
 */

public class AlphaInAnimation extends BaseAnimation {
    private static final float START = 0;
    private float mStart;

    public AlphaInAnimation() {
        this(START);
    }

    public AlphaInAnimation(float mfrom) {
        this.mStart = mfrom;
    }

    @Override
    public Animator[] getAnimators(View view) {
        return new Animator[]{ObjectAnimator.ofFloat(view, "alpha", mStart, 1)};
    }
}
